package com.smxy.daydayup.service;

import com.smxy.daydayup.pojo.SectionTree;
import com.smxy.daydayup.pojo.dto.TreeNode;

import java.util.List;

/**
 * @team daydayup
 * @time 2021-12-12 8:29
 */
public interface SectionTreeService {


    int deleteByPrimaryKey(Long sectionId);

    int insert(SectionTree record);

    int insertSelective(SectionTree record);

    SectionTree selectByPrimaryKey(Long sectionId);

    int updateByPrimaryKeySelective(SectionTree record);

    int updateByPrimaryKey(SectionTree record);

    List<SectionTree> getTreeList(Integer courseId);

    int updateTree(List<SectionTree> treeList,Integer courseId);

    void addNode(TreeNode treeNode, Integer courseId);
}

